
public class Pair<E extends Steam<?>> {

	E steam;
	String filepath1;
	String filepath2;
	boolean simple;

	Pair() {}

	Pair(E s, String f) {
		this.steam = s;
		this.filepath1 = f;
		this.filepath2 = f;
		this.simple = true;
	}

	Pair(E s, String f1, String f2) {
		this.steam = s;
		this.filepath1 = f1;
		this.filepath2 = f2;
		this.simple = false;
	}

	public void print(float m, boolean show) {
		if (!steam.isEmpty()) {
			if (this.simple) {
				System.out.println("Path : " + this.filepath1);
				this.steam.print();
			}
			else {
					System.out.println("Compared files : " + this.filepath1 + " and " + this.filepath2);
					System.out.println("Number of matches : " + this.steam.length() + "   Ratio : " + ((float) this.steam.length())/((float) m));
					if (show) {
						this.steam.print();
					}
					System.out.println(); 
			}
		}
	}

}
